package com.fang.test.service;

import com.fang.test.mapper.PersonMapper;
import com.fang.test.pojo.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class PersonService {

    @Autowired
    private PersonMapper mapper;

//    @Transactional
    public List<Person> getAllPerson() {
        return mapper.selAll();
    }


}
